package com.ezops.poc.parser;

import java.util.List;

import com.ezops.poc.util.NoMappingFoundException;

/**
 * Convert one class into another class.
 * 
 * @author vgaurav
 * 
 */
public interface Converter<S, D> {

	/**
	 * Convert the source list into destination list.
	 * @param sourceList
	 * @return
	 * @throws NoMappingFoundException 
	 */
	public List<D> convert(List<S> sourceList) throws NoMappingFoundException;
	
	public D convert(S source) throws NoMappingFoundException;

}
